#include <stdio.h>
#include <string.h>
char s[200];
int main()
{
    gets(s);
    int min = 0;
    int i;
    for (i = 0; s[i] != '\0'; i++)
    {
        if (s[i] == ' ') min++;
        else if (s[i] == 'a') min++;
        else if (s[i] == 'b') min += 2;
        else if (s[i] == 'c') min += 3;
        else if (s[i] == 'd') min++;
        else if (s[i] == 'e') min += 2;
        else if (s[i] == 'f') min += 3;
        else if (s[i] == 'g') min++;
        else if (s[i] == 'h') min += 2;
        else if (s[i] == 'i') min += 3;
        else if (s[i] == 'j') min++;
        else if (s[i] == 'k') min += 2;
        else if (s[i] == 'l') min += 3;
        else if (s[i] == 'm') min++;
        else if (s[i] == 'n') min += 2;
        else if (s[i] == 'o') min += 3;
        else if (s[i] == 'p') min++;
        else if (s[i] == 'q') min += 2;
        else if (s[i] == 'r') min += 3;
        else if (s[i] == 's') min += 4;
        else if (s[i] == 't') min++;
        else if (s[i] == 'u') min += 2;
        else if (s[i] == 'v') min += 3;
        else if (s[i] == 'w') min++;
        else if (s[i] == 'x') min += 2;
        else if (s[i] == 'y') min += 3;
        else if (s[i] == 'z') min += 4;
    }
    printf("%d", min);
    return 0;
}
